﻿using System.Windows;

using Core.Logic.Options;

namespace UI.Windows
{
    public partial class OptionsWindow
    {
        public OptionsWindow(Options options)
        {
            Options = options;

            InitializeComponent();
        }

		#region Public fields

		public Options Options { get; private set; }

		#endregion  
        
        #region Event handlers

        private void OkButtonClick(object sender, RoutedEventArgs e)
        {
            Options.IsModified = true;

            DialogResult = true;
            Close();
        }

        private void CancelButtonClick(object sender, RoutedEventArgs e)
        {
            Close();
        }

        #endregion
    }
}